Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Database XML Java API Reference 10g Release 2 (10.2) B14293-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.soap.transport.smtp
Class SMTPUtils

`java.lang.Object
org.apache.soap.transport.smtp.SMTPUtils`

public class SMTPUtils
extends java.lang.Object

Various SMTP utilities.

Constructor Summary
`SMTPUtils()`

Method Summary
`static java.lang.String` | `getAddressFromAddressHeader(java.lang.String header)` This method takes an SMTP header line like from say "To:" header and extracts the actual email address in there.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SMTPUtils

    public SMTPUtils()

Method Detail

### getAddressFromAddressHeader

    public static java.lang.String getAddressFromAddressHeader(java.lang.String header)

  This method takes an SMTP header line like from say "To:" header and extracts the actual email address in there. If there are multiple addresses there, then the first one is returned. This method should follow the RFC822 guidelines on how an email address is encoded.
  Parameters:
    `header` - the header line (without the header name - i.e., just the stuff after the first ':').
  Returns:
    the email address in the header or null if can't figure it out

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Database XML Java API Reference 10g Release 2 (10.2) B14293-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001 The Apache Software Foundation. All rights reserved.